package com.yugao.fintech.draper.admin.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yugao.fintech.draper.admin.entity.AppInfo;
import com.yugao.fintech.draper.admin.param.AppInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AppConvert {

	AppConvert INSTANCE = Mappers.getMapper(AppConvert.class);

	Page<AppInfoVO> convertPage(Page<AppInfo> appPage);

	List<AppInfoVO> convertList(List<AppInfo> appList);

	AppInfoVO convert(AppInfo appInfo);

	AppInfo convert(AppInfoVO appInfoVO);

}
